package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

@Entity
public class CuisineTypeEntity implements Serializable {
    private static long serialVersionUid = 1L;

    public static long getSerialVersionUid() {
        return serialVersionUid;
    }

    public static void setSerialVersionUid(long aSerialVersionUid) {
        serialVersionUid = aSerialVersionUid;
    }
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String cuisineTypeName;
    private String cuisineTypeDesc;

    @ManyToMany
    private List<FnBBranchEntity> fnBBranch = new ArrayList<FnBBranchEntity>();

  

    public Long getId() {
        return getId();
    }

    public void setId(Long id) {
        this.setId(id);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (getId() != null ? getId().hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CuisineTypeEntity)) {
            return false;
        }
        CuisineTypeEntity other = (CuisineTypeEntity) object;
        if ((this.getId() == null && other.getId() != null) || (this.getId() != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.CuisineTypeEntity[ id=" + getId() + " ]";
    }

    public String getCuisineTypeName() {
        return cuisineTypeName;
    }

    public void setCuisineTypeName(String cuisineTypeName) {
        this.cuisineTypeName = cuisineTypeName;
    }

    public String getCuisineTypeDesc() {
        return cuisineTypeDesc;
    }

    public void setCuisineTypeDesc(String cuisineTypeDesc) {
        this.cuisineTypeDesc = cuisineTypeDesc;
    }

    public List<FnBBranchEntity> getFnBBranch() {
        return fnBBranch;
    }

    public void setFnBBranch(List<FnBBranchEntity> fnBBranch) {
        this.fnBBranch = fnBBranch;
    }
}
